<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    

<script src="./02-Promise.js"></script>
<script>

// 原生的Promsie
// console.log( Promise );// ƒ Promise() { [native code] }
// console.log( window.Promise );// ƒ Promise() { [native code] }

let p1 = new Promise((resolve,reject)=>{// excutor执行器函数，同步执行
    console.log( 'excutor函数...' );
    resolve();
    reject();
});
p1.then();
p1.catch();
Promise.all();
Promise.race();

</script>
</body>
</html>